package com.ehome.poct.terminal.api.fegin;

import com.ehome.poct.terminal.api.constant.ApplicationName;
import com.ehome.poct.terminal.api.dto.ErrorLogDTO;
import com.ehome.poct.terminal.api.dto.LogUploadCallbackDTO;
import com.ehome.poct.terminal.api.dto.SyncLogCallbackDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = ApplicationName.POCT_SERVICE_BASE,contextId = "TestDeviceLogFeginClient")
public interface TestDeviceLogFeginClient {

    @PostMapping("/test_device_error_log")
    void errorLogSave(@RequestBody ErrorLogDTO dto);

    @PostMapping("/test_device_sync_log_record/sync_log_callback")
    void syncLogCallback(@RequestBody SyncLogCallbackDTO dto);

    @PostMapping("/test_device_sync_log_record/log_upload_callback")
    void logUploadCallback(@RequestBody LogUploadCallbackDTO dto);
}
